package com.dgut.smart_house.service;

import com.dgut.smart_house.domain.Device;
import com.dgut.smart_house.domain.Node;
import com.dgut.smart_house.dto.DeviceNodeDto;
import com.dgut.smart_house.dto.RealDataDto;
import com.dgut.smart_house.dto.UserDeviceDto;
import com.dgut.smart_house.vo.DeviceDataVo;

import java.util.List;

public interface DeviceListService {
    /*
    当前用户下的所有设备
    */
    public List<UserDeviceDto> findAllDevices(Integer userId);

    /*
    设备号下的所有数据
    */
    public DeviceDataVo findDeviceDataByDevId(Integer devId,Integer pageNo,Integer pageSize);

    public List<RealDataDto> findRealDatas(Integer userId);

    public Integer deleteDevice(Integer devId);

    public int updateDevice(Integer devId,String desc);

    public int createDevice(Device device);

    public Integer findUserByDevId(Integer devId);

    public Integer deleteDatasByDevId(Integer devId) ;

    public List<Node> findAllNodes();

    public DeviceNodeDto findDeviceByDevId(Integer devId);

    /**
     * 查看设备状态
     * @param devId
     */
    public int checkDeviceStatus(int devId);

    public List<Device> findByCommand(String command);
}
